package com.king.security.repository;

import com.king.security.entity.MyUser;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author KING
 * @date 2018/8/30 19:13
 */
public interface UserRepository extends JpaRepository<MyUser, Long> {
    MyUser findByUserName(String userName);

    MyUser findByUserNameOrEmail(String username, String email);

    MyUser findById(Integer id);
}